<UPDATE>
- Gateways are now updated on db if already stored.
- Fixed relational databases.