Protocol and more DB stuffs

- Make provision for protocol in globals.php
- DatabaseTableColumn work ongoing
- Add REAL type in column types
- Make provision for indexes