table generation in mysql and sqlite