Initial commit for moving sqlite wrapper to common.(wip)