Code adjustments
Define tables global (#214 #196)
Added database prepare (#38 #214 #196)
Prepare statments (#38 #214 #196)
Unified statements