server:
- fixed php syntax
- added support for mysql, now using lastInsertId when inserting new rows