Use select+insert or replace instead of always using replace
missing semicolon
one more semicolon
Use insert ignore here
SELECT before this operation
Argh missing semicolon
One more insert/replace
Merge pull request #21 from stf-storage/topic/select_insert

Use select+insert or replace instead of always using replace