better regexp for db parsing