[Runtime] Change the runtime database backend to sqlite

Using Sqlite database instead of JSON format database, it will guarantee
data security and data integrity.

For Tizen platform, another pull request will be sent after #755 has been merged.