make adaptation for SqlLite database