Are there any documentation available to create Tiles which can interact with database (Read data, write data) , custom services?
Check out the following docs:
Creating Custom View Tiles and How to POST to a Service from a Tile and Tiles, Templates & Streams - Developer Resources
Note: Tiles cannot directly interact with a database, they can only interact with services...what those services wrap / expose can be anything.
Retrieving data ...