Improve extras/create_db.sh script

It is now possible to call script from other directories than extras
Add/remove some restrictions from columns

Allow NULL values for firs/last_timestamps in files table for the case when
importing only waypoints. In that case there are no first/last_timestamps.
Prevent geometry columns to have NULL values.