Improved the performance of SQlite