Complete implementation of interface for sqlite and mysql