Api cleanups

Major API cleanup
* Unified SQL tables types
* Heavy lifting in FacebookImagesDatabase because in order to get rid of useless fields